﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GLImp;
using System.Drawing;
using OpenTK;

namespace CastleOfTheDisillusioned.Overworld {
	class Overworld_State : GameState {
		public static Player Player;
		public static Realm CurrentRealm;

		public Overworld_State() {
			CurrentRealm = new Realm(11, 11);

			Player = new Player(5, 5);
			CurrentRealm.Explore(5, 5);
		}

		public override void Start() {
			MainCamera.CameraMain.SetZoom(64);
			GraphicsManager.SetBackground(Color.Black); //Ocean? Someday....
		}

		public override void Stop() {
		}

		public override void Update() {
			Player.Update();
			MainCamera.CenterView(Player.DrawnX + 0.5, Player.DrawnY + 0.5);
		}

		public override void Draw() {
			CurrentRealm.Draw();
			Player.Draw();
		}
	}
}
